Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dep updates and expansion of ruff CI #351

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

pvandyken
Copy link
Contributor

Since ruff now supports black-compatible formatting, I decided to drop our black and isort dependencies and switch fully over to ruff. I also enabled all the ruff rule sets that I thought made sense for this repo. Notably, nothing to do with type checking (pyright handles that). Our code base was already quite conventional, so enabling most of these wasn't too burdensome, mostly a good chance to catch up on docstrings!

I left the ruleset additions sprawled across the commits to make it easier to see what rules enforced what changes. There's no intentional behavioural changes, so assuming the tests pass, I'll just wait for one review here.

@pvandyken pvandyken added the maintenance Updates or improvements that do not change functionality of the code label Dec 13, 2023
@github-actions github-actions bot requested review from akhanf and kaitj December 13, 2023 16:14
Copy link
Contributor

@kaitj kaitj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tackling this, also nice to see more support from ruff. Largely looks good to me with a few comments and questions to specific changes.

snakebids/cli.py Outdated Show resolved Hide resolved
snakebids/tests/strategies.py Outdated Show resolved Hide resolved
snakebids/tests/test_app.py Show resolved Hide resolved
Switch all formatting to ruff, as opposed to black and isort

Enable
  - pep8-naming
  - pycodestyle warning rules
  - pydocstyle
  - flake8-2020
  - flake8-bandit
  - flake8-blind-except
  - flake8-bugbear
  - flake8-builtins
  - flake8-commas
  - flake8-comprehensions
  - flake8-debugger
  - flake8-errmsg
  - flake8-future-annotations
  - flake8-implicit-str-concat
  - flake8-import-conventions
  - flake8-logging-format
  - flake8-no-pep420
  - flake8-pie
  - flake8-pytest-style
  - flake8-raise
  - flake8-return
  - flake8-self
  - flake8-simplify
  - tryceratops
  - flynt
  - narrow subset of perflint
@pvandyken pvandyken merged commit e21f410 into khanlab:main Dec 15, 2023
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Updates or improvements that do not change functionality of the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants